package me.zhengjie.minbearwcs.dao.agv.inf;


import me.zhengjie.minbearwcs.entity.DTO.agv.task.actionEnum.AgvAction;
import me.zhengjie.minbearwcs.entity.PO.agv.AgvMissionDetail;

import java.time.LocalDateTime;
import java.util.List;

public interface AgvMissionDetailDao {
    boolean insert(AgvMissionDetail agvMissionDetail);

    AgvMissionDetail selectByTaskIdAndPoint(String taskId, String point);

    boolean updateMarkTimeAndIsCompleteById(Integer id, LocalDateTime markTime, Integer isComplete);

    List<AgvMissionDetail> selectByTaskId(String taskId);

    boolean deleteById(int id);

    AgvMissionDetail selectByTaskIdAndAction(String taskId, AgvAction action);

    AgvMissionDetail selectByPointAndAction(String point, AgvAction action);

    boolean updateMarkTimePointAndIsCompleteById(Integer id, String point, LocalDateTime markTime, Integer isComplete);

    boolean updatePointById(Integer id,String point);

    boolean updatePointByTaskIdAndAction(String taskId, AgvAction action,String point);


}
